package com.example.apps

import android.util.Log
import com.example.apps.entity.AppEntity
import com.example.lib_base.BaseEntity
import com.example.lib_base.BaseRepository
import com.example.lib_http.HttpType
import com.example.lib_http.NetWorkFactory
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map

class NetRepository:BaseRepository() {

    fun selClientApp(map: HashMap<String,Any>):Flow<AppEntity>{
        val app = NetWorkFactory.factory(HttpType.NONE)
            .create(ApiService::class.java)
            .selClientApp(createBody(map))

        return app

    }
}